﻿using System.ComponentModel.DataAnnotations;
using YNTK.Dependency;

namespace YNTK.System.Entitys.Dto.Permission.Organize
{
    /// <summary>
    /// 新增组织信息请求模型
    /// </summary>
    [SuppressSniffer]
    public class AddOrganizeRequestModel
    {
        /// <summary>
        /// 组织全称
        /// </summary>
        [Required(ErrorMessage = "组织全称不能为空")]
        public string fullName { get; set; }

        /// <summary>
        /// 组织简称
        /// </summary>
        [Required(ErrorMessage = "组织简称不能为空")]
        public string organizeName { get; set; }

        /// <summary>
        /// 组织代码
        /// </summary>
        [Required(ErrorMessage = "组织代码不能为空")]
        public string enCode { get; set; }

        /// <summary>
        /// 行政区划,如云南省-昆明市
        /// </summary>
        [Required(ErrorMessage = "行政区划不能为空")]
        public string administrativeArea { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string description { get; set; }

        /// <summary>
        /// 是否启用，1.启用 
        /// </summary>
        public int? enabledMark { get; set; }
    }
}
